package com.sanqi.work.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sanqi.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sanqi.common.core.domain.BaseEntity;

/**
 * 工作指标配置对象 work_score_conf
 * 
 * @author duany
 * @date 2025-11-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("work_score_conf")
public class WorkScoreConf extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /** 职场ID */
    @Excel(name = "职场ID")
    @TableField(value="workplace_id")
    private String workplaceId;

    /** 编码 */
    @Excel(name = "编码")
    @TableField(value="conf_code")
    private String confCode;

    /** 配置详情 */
    @Excel(name = "配置详情")
    @TableField(value="conf_info")
    private String confInfo;

    /** 类型 */
    @Excel(name = "类型")
    @TableField(value="conf_type")
    private String confType;

    /** 最高得分 */
    @Excel(name = "最高得分")
    @TableField(value="highest_score")
    private BigDecimal highestScore;

    /** 最低得分 */
    @Excel(name = "最低得分")
    @TableField(value="lowest_score")
    private BigDecimal lowestScore;

    /** 合格分数 */
    @Excel(name = "合格分数")
    @TableField(value="passing_score")
    private BigDecimal passingScore;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .append("workplaceId", getWorkplaceId())
            .append("confCode", getConfCode())
            .append("confInfo", getConfInfo())
            .append("confType", getConfType())
            .append("highestScore", getHighestScore())
            .append("lowestScore", getLowestScore())
            .append("passingScore", getPassingScore())
            .toString();
    }
}
